<?php

namespace App\Observers;

use App\Caches\Game\PackageCache;
use App\Models\Game\Center\Package;

class PackageObserver
{
    /**
     * @param Package $model
     */
    public function created(Package $model)
    {
        PackageCache::set($model);
    }

    /**
     * @param Package $model
     */
    public function updated(Package $model)
    {
        PackageCache::set($model);
    }

    /**
     * @param Package $model
     */
    public function deleted(Package $model)
    {
        PackageCache::del($model);
    }
}
